package com.ruoyi.patrol.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 片区信息对象 pt_area
 *
 * @author linan
 * @date 2024-02-16
 */
@Data
public class PtArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 片区名称 */
    @Excel(name = "片区名称")
    private String areaName;

    /** 片区图片 */
    @Excel(name = "片区图片")
    private String areaImg;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 负责人 */
    @Excel(name = "负责人")
    private String principal;

    /** 负责人联系方式 */
    @Excel(name = "负责人联系方式")
    private String principalPhone;

    /** 项目经理 */
    @Excel(name = "项目经理")
    private String projectManager;

    /** 项目经理联系方式 */
    @Excel(name = "项目经理联系方式")
    private String projectManagerPhone;

    /** 附件 */
    @Excel(name = "附件")
    private String file;

    private Long deptId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("areaName", getAreaName())
                .append("areaImg", getAreaImg())
                .append("projectId", getProjectId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("principal", getPrincipal())
                .append("principalPhone", getPrincipalPhone())
                .append("projectManager", getProjectManager())
                .append("projectManagerPhone", getProjectManagerPhone())
                .append("remark", getRemark())
                .append("file", getFile())
                .toString();
    }
}
